TARGETS := TestThread MThread
CXX      := g++
CXXFLAGS := -std=c++11 -Wall -Wextra
LDFLAGS  := -lpthread
all: $(TARGETS)
TestThread: TestThread.cc
	$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)
MThread: MThread.cc
	$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)
.PHONY: clean
clean:
	rm -rf $(TARGETS)
